package com.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mappers.UserMapper;
import com.models.User;

@Repository
public class UserDao implements UserMapper {
	@Autowired
	UserMapper mapper;

	@Override
	public List<User> findAll() {
		return mapper.findAll();
	}

	@Override
	public void addUser(User user) {
		mapper.addUser(user);
	}

	@Override
	public User findByName(String username) {
		return mapper.findByName(username);
	}

}
